<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="created" content="2018-10-23T06:18:10.521000000">
    <meta name="changed" content="2021-05-21T06:18:42.262000000">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Language" content="en">
    <title>
      LED
    </title>
    <link rel="stylesheet" type="text/css" href="../../style.css">
  </head>
  <body>
    <div class="maindiv">
      <h1>
        <img class="iconlibs" src="../../../../icons/6464/led.png" alt="#########" width="32" height="32" align="middle"> <em>LED</em>
      </h1>
      <table>
        <tbody>
          <tr>
            <td>
              <strong>Library:</strong>
            </td>
            <td>
              <a href="index.html">Input/Output</a>
            </td>
          </tr>
          <tr>
            <td>
              <strong>Introduced:</strong>
            </td>
            <td>
              2.1.3
            </td>
          </tr>
          <tr>
            <td valign="top">
              <strong>Appearance:</strong>
            </td>
            <td valign="top">
              <img class="appearancelibs" src="../../../../img-libs/led.png" alt="#########" width="64" height="64"> 
			   <img class="appearancelibs" src="../../../../img-libs/ledoff.png" alt="#########" width="64" height="64">
            </td>
          </tr>
        </tbody>
      </table>
      <h2>
        Behavior
      </h2>
      <p>
        Displays the value of its input by coloring the LED (as specified by its Color attribute) or not depending on whether the input is 1 or 0.
      </p>
      <p>
        (The LED component is basically redundant with an output pin, except for a somewhat different appearance. Some users, though, thought it would be nice to include.)
      </p>
      <h2>
        Pins
      </h2>
      <p>
        A LED has only one pin, a 1-bit input which is used to determine whether to display the LED colored (when the input is 1) or darkened (when the input is anything else).
      </p>
      <h2>
        Attributes
      </h2>
      <p>
        When the component is selected or being added, the arrow keys alter its <q>Facing</q> attribute.
      </p>
      <dl>
        <dt>
          Facing
        </dt>
        <dd>
          The location of the input pin relative to the component.
        </dd>
        <dt>
          Color
        </dt>
        <dd>
          The color to display when the input value is 1.
        </dd>
        <dt>
          Active On High?
        </dt>
        <dd>
          If <q>yes</q>, then the LED is colored when the input is 1. If <q>no</q>, it is colored when the input is 0.
        </dd>
        <dt>
          Label
        </dt>
        <dd>
          The text within the label associated with the component.
        </dd>
        <dt>
          Label Location
        </dt>
        <dd>
          The location of the label relative to the component.
        </dd>
        <dt>
          Label Font
        </dt>
        <dd>
          The font with which to render the label.
        </dd>
        <dt>
          Label Color
        </dt>
        <dd>
          The color with which to draw the label.
        </dd>
      </dl>
      <h2>
        Poke Tool Behavior
      </h2>
      <p>
        None.
      </p>
      <h2>
        Text Tool Behavior
      </h2>
      <p>
        Allows the label associated with the component to be edited.
      </p>
      <p>
        <a href="../index.html">Back to <em>Library Reference</em></a>
      </p>
    </div>
  </body>
</html>
